package com.allqj;

/**
 * @author sjw
 * @className bit
 * @date 2021/9/18 17:12
 * @description: TODO
 */
public class bit {
    public static void main(String[] args) {
        int a=2;
        a|=a>>>1;
        System.out.println(a);
        int newCapacity = 1;
        newCapacity |= newCapacity >>>  1;
        newCapacity |= newCapacity >>>  2;
        newCapacity |= newCapacity >>>  4;
        newCapacity |= newCapacity >>>  8;
        newCapacity |= newCapacity >>> 16;
        System.out.println(newCapacity);
    }
}
